clear;clc
import MeasurementSession.Magnetometer.MagneticFieldCalibration

%% Prepare

s=MagneticFieldCalibration([Constant.AutoMeasurementRootPath, '\+EquipmentControl\+Connection\DEFULT_DEVICE.dat']);

s.addParameter('freq', 1e5, 'Hz');
s.addParameter('amp', 1, 'V');
s.addParameter('count', 10);

%% Run

s.run();

%% Save
filename = MeasurementSession.save('tst', s);


%% Reload
clear s;
MeasurementSession.load(filename);